<?php
include_once('comm.php');
$myt = new thunder();

$sql = "select * from kldiy_log order by id desc limit 1";
$data = $myt->getOne($sql);

if(isset($data['log_version'])){
	$version = $data['log_version'];
	$subver = $data['log_date'];
	$lastupdate = date('Y-m-d', $data['log_date']);
	$data = "<root><version>".$version."</version><subver>".$subver."</subver><lastupdate>".$lastupdate."</lastupdate></root>";
}else{
	$data = 'error';
}

echo $data;
?>